﻿using Materal.Extensions;
using System.Windows;

namespace WPFTest
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            ViewModel.SelectedMenuChanged += ViewModel_SelectedMenuChanged;
        }

        private void ViewModel_SelectedMenuChanged(MenuViewModel menu) 
            => contentFrame.Navigate(menu.PageType.Instantiation());
    }
}